//
//  NormalUI.swift
//  InPlace
//
//  Created by 松松 on 2018/11/2.
//  Copyright © 2018年 整物搭链. All rights reserved.
//

import Foundation
import UIKit

public func getNormalLabel(frame:CGRect,
                    title:String = "",
                    fontSize:CGFloat = 14,
                    textColor:UIColor = UIColor.darkGray,
                    textAlign:NSTextAlignment = .center) -> UILabel{
    let label = UILabel.init(frame: frame)
    label.text = title
    label.textColor = textColor
    label.font = UIFont.systemFont(ofSize: fontSize)
    label.textAlignment = textAlign
    return label

}

public func getNormalButton(frame:CGRect,
                     title:String = "",
                     fontSize:CGFloat = 14,
                     textColor:UIColor = UIColor.darkGray
                     ) -> UIButton{
    let button = UIButton(frame: frame)
    button.setTitle(title, for: .normal)
    button.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    button.setTitleColor(textColor, for: .normal)
    return button
}
